import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import installElementPlus from "./plugins/element";

// 导入bootstrap
import "bootstrap";
import "bootstrap/dist/css/bootstrap.css";
import * as echarts from 'echarts'

const app = createApp(App);
app.directive("pin", {
  mounted(el, binding) {
    el.style.position = "fixed";
    const s = binding.arg || "top";
    el.style[s] = binding.value + "px";
  },
  updated(el, binding) {
    console.log(binding.arg);
    console.log(binding.arg);
    const s = binding.arg || "top";
    el.style[s] = binding.value + "px";
  },
});

app.use(store).use(router).use(installElementPlus).mount("#app");
app.echarts=echarts